FROM node:8.11.3-alpine
MAINTAINER Allen <ftwc31@163.com>

RUN mkdir /work
COPY ./package.json /work

RUN npm config set registry https://registry.npm.taobao.org && \
	npm install -g cnpm && \
	cd /work && \
	cnpm install 

WORKDIR /work

LABEL NODE_VERSION=8.11.3

CMD ["node","-v"]